{% extends "base.html" %}
{% block title %}注册{% endblock %}
{% block content %}
<h2 class="text-center mb-4">用户注册</h2>
<form method="POST">
    {{ form.hidden_tag() }}
    <div class="mb-3">
        {{ form.username.label(class="form-label") }}
        {{ form.username(class="form-control") }}
    </div>
    <div class="mb-3">
        {{ form.email.label(class="form-label") }}
        {{ form.email(class="form-control") }}
    </div>
    <div class="mb-3">
        {{ form.password.label(class="form-label") }}
        {{ form.password(class="form-control") }}
    </div>
    <div class="mb-3">
        {{ form.password2.label(class="form-label") }}
        {{ form.password2(class="form-control") }}
    </div>
    <div class="d-grid">
        {{ form.submit(class="btn btn-success") }}
    </div>
</form>
{% endblock %}
